# build docker image with Dockerfile
echo "开始生成 Agile Note 服务的Docker Image BASE版本"
docker build -t  agile_note:slim_base . -f dockerfile_base_image

# 请使用 ./04_run_agile_note_docker_container.sh 方式启动容器 ,以下方式供调试使用
# docker run -d -p 8000:8000  \
#        --name agile_note  \
#        --network host  \
#        -v /Users/apple/Downloads/models:/app/models \
#        -v /Users/apple/Downloads/saved_images:/app/saved_images \
#         agile_note:latest

# docker run -it -p 8000:8000   \
#        --name agile_note  \
#        --network host \
#        -v /Users/apple/Downloads/models:/app/models \
#        -v /Users/apple/Downloads/saved_images:/app/saved_images \
#         agile_note:latest /bin/bash
# # 进入容器
# docker exec -it agile_note /bin/bash